package com.aikon.wht.designPattern.async;

/**
 * @author haitao.wang
 */
public interface AsyncResult<T> {

    int RUNNING = 1;

    int FAILED = 2;

    int COMPLETED = 3;


    void setVal(Object val);

    Object getVal();

    void setException(Exception exception);

    boolean isCompleted();

    void await() throws InterruptedException;
}
